package com.ccit.common.fallback;

import com.ccit.common.client.UserClient;
import com.ccit.common.result.Result;
import com.ccit.model.User;
import com.ccit.model.vo.admin.AdminUpdateVo;
import org.springframework.stereotype.Component;

@Component
public class UserClientFallback  implements UserClient {
    @Override
    public Result removeAdminById(String name) {
        System.out.println("调用消息接口失败，对其进行降级处理！1");
        return null;
    }

    @Override
    public boolean updateAdminInfoByEmployee(AdminUpdateVo adminUpdateVo) {
        System.out.println("调用消息接口失败，对其进行降级处理！2");
        return false;
    }

    @Override
    public User getByPhone(String phone) {
        System.out.println("调用消息接口失败，对其进行降级处理！3");
        return null;
    }
}
